package com.peng.mvvm_wan.fragments

import android.view.View
import androidx.lifecycle.ViewModelProvider
import com.peng.mvvm_wan.R
import com.peng.mvvm_wan.base.BaseFragment
import com.peng.mvvm_wan.databinding.FragmentMeBinding
import com.peng.mvvm_wan.viewmodels.MeModel

class MeFragment : BaseFragment<MeModel>() {
    override fun getBindingView(): View? {
        val binding = FragmentMeBinding.inflate(layoutInflater)
        binding.lifecycleOwner = this
        binding.meModel = viewModel
        return binding.root
    }

    override fun getResourceId(): Int = R.layout.fragment_me

    override fun initViewModel(): MeModel {
        return ViewModelProvider(requireActivity()).get(MeModel::class.java)
    }
}